﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Restaurant.entity
{
    class Guestitem
    {
        public List<Menuitem> menuitems;//点的菜
        public int guestNum;//客人数量
        public bool isStart;
        public bool isSettlement;//是否结算
        public DateTime startTime;//开始时间
        public string itemlistNum;//订单编号
        public string chargePeople;//负责人
        public double price;//总价
        public string remarks;//备注
        public bool isroom=false;

        public Guestitem()
        {

        }

        public void setMenuitems(List<Menuitem>list)
        {
            this.menuitems = list;
        }
        public void setGuestNum(int gustint)
        {
            this.guestNum = gustint;
        }
        public void setIsStart(bool isg)
        {
            this.isStart = isg;
        }
        public void setIssetlleDown(bool isg)
        {
            this.isSettlement = isg;
        }
       public void setDateTime(DateTime st)
        {
            this.startTime = st;
        }
        public void setItemlistNum(string it)
        {
            this.itemlistNum = it;
        }
        public void setChargePeople(string peo)
        {
            this.chargePeople = peo;
        }
        public void setPrice(double pri)
        {
            this.price = pri;
        }

        public void setReamrks(string s)
        {
            this.remarks = s;
        }
  
        public void setisRoom(bool s)
        {
            this.isroom = true;
        }

        public int getMenuindex(int num)
        {
            int index = -1;
            for (int i = 0; i <menuitems.Count();i++)
            {
                if (menuitems[i].itemNum.Equals(num))
                    index = i;
            }
            return index;
        }


    }
}
